<script setup lang="ts">
/*
 * This starter template is using Vue 3 <script setup> SFCs
 * Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
 */
import AppHeader from './components/AppHeader.vue';
import AppFooter from './components/AppFooter.vue';
import { ref } from 'vue';
import zhCn from 'element-plus/lib/locale/lang/zh-cn';
let locale = ref(zhCn);
</script>

<template>
  <el-config-provider :locale="locale">
    <header>
      <AppHeader />
    </header>
    <main>
      <router-view />
    </main>
    <footer>
      <AppFooter />
    </footer>
  </el-config-provider>
</template>

<style lang="scss">
#app {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: 1416px;
  margin: 0 auto;
  padding: 0 24px;
}
main {
  min-height: calc(100vh - 60px - 176px);
  @media (max-width: 1000px) {
    min-height: calc(100vh - 70px - 328px);
  }
}
footer {
  background-color: #060612;
}
</style>
